package com.prb.common.protocol;

import lombok.Data;

@Data
public class RpcResponse {

    public RpcResponse() {
    }

    public RpcResponse(String invokeId, Thread thread, Object result) {
        this.invokeId = invokeId;
        this.thread = thread;
        this.result = result;
    }

    private String invokeId;

    private Thread thread;
    
    private Object result;

    public String getServerName(){

        return invokeId.split(":")[0];
    }
    
}